.lg-upload {
  display: inline-block;
  .t-icon-time {
    color: burlywood;
  }
  .t-icon-loading {
    color: cornflowerblue;
  }
  .t-icon-check-circle {
    color: green;
  }
  .t-icon-error-circle {
    color: red;
  }
}
.lg-upload-list {
  width: 100%;
  .lg-upload-trigger {
    margin-bottom: var(--app-space-vertical);
    > span + span {
      margin-left: var(--app-space-horizontal);
    }
  }
  .lg-upload-item {
    line-height: var(--app-height-component);
    color: #888;
    display: flex;
    .lg-upload-remove {
      cursor: pointer;
    }
    .lg-upload-remove:hover {
      color: red;
    }
  }
  .lg-upload-0 {
    .lg-upload-file {
      cursor: pointer;
      &:hover {
        color: var(--app-color-primary);
      }
    }
  }
  .lg-upload-ext {
    margin-left: var(--app-space-horizontal);
    .t-icon {
      font-size: 20px;
    }
    .t-icon + .t-icon {
      margin-left: var(--app-space-horizontal);
    }
    .lg-upload-percent {
      color: var(--app-color-primary);
      margin-left: var(--app-space-horizontal);
      font-size: 13px;
    }
  }
  .lg-upload-trigger {
    display: flex;
    align-items: center;
  }
}
.lg-upload-table {
  width: 100%;
  .lg-upload-trigger {
    margin-bottom: var(--app-space-vertical);
    > span + span {
      margin-left: var(--app-space-horizontal);
    }
  }
  .lg-upload-files {
    width: 100%;
    border: 1px dashed var(--td-component-border);
    border-collapse: collapse;
    tr {
      border-top: 1px solid var(--td-component-border);
    }
    th {
      color: var(--app-color-placeholder);
      font-weight: 400;
      border: 1px solid var(--td-component-border);
      text-align: left;
      background-color: var(--app-color-bg-primary);
    }
    td {
      color: var(--td-text-color-primary);
    }
    td,
    th {
      padding: var(--app-space-vertical) var(--app-space-horizontal);
    }
  }
  .lg-upload-0 {
    .lg-upload-file {
      cursor: pointer;
      &:hover {
        color: var(--app-color-primary);
      }
    }
  }
}
.lg-upload-img {
  display: flex;
  flex-wrap: wrap;
  margin: -6px;
  .lg-upload-item {
    position: relative;
    width: var(--lg-upload-w, 100px);
    height: var(--lg-upload-h, var(--lg-upload-w, 100px));
    padding: var(--td-comp-paddingTB-s);
    display: flex;
    align-items: center;
    justify-content: center;
    .lg-upload-remove {
      display: none;
      position: absolute;
      top: var(--td-comp-paddingTB-s);
      right: var(--td-comp-paddingTB-s);
      background: rgba(0, 0, 0, 0.73);
      font-size: 20px;
      width: 20px;
      height: 20px;
      color: #fff;
      cursor: pointer;
      border-top-right-radius: var(--app-border-radius);
      border-bottom-left-radius: var(--app-border-radius);
      align-items: center;
      justify-content: center;
      &:hover {
        background: rgba(255, 0, 0, 0.73);
      }
    }
    &:hover {
      .lg-upload-remove {
        display: flex;
      }
    }
  }
  .lg-upload-file {
    object-fit: contain;
  }
  .lg-upload-0 {
    .lg-upload-file {
      cursor: pointer;
    }
  }
  .lg-upload-trigger {
    cursor: pointer;
    &:hover {
      border-color: var(--app-color-primary);
    }
  }
  .lg-upload-file,
  .lg-upload-trigger {
    width: 100%;
    height: 100%;
    border-radius: var(--app-border-radius);
    border: 1px dashed var(--td-component-border);
    background: var(--td-bg-color-secondarycontainer);
    padding: var(--td-comp-paddingTB-s);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
